package com.mdinfo.gw.door.bean

import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable
import java.util.*

/**
 * Created by Administrator on 2018/1/15.
 * 门卡和门绑定关系
 */
@TableName("door_card_bind")
data class DoorCardBind(
        var id:Int?= null,              //主键
        var doorId:Int? = null,         //门id
        var cardId:Int? = null,         //门卡id
        var createTime:Date? = null,    //绑定关键创建时间
        var expireTime:Date? = null,    //门卡过期时间
        var timePickerStart:String? = null,     //时间段开始时间
        var timePickerEnd:String? = null,       //时间段结束时间
        var weekday:String? = null              //每周星期天树
): Model<DoorCardBind>() {
    override fun pkVal(): Serializable {
        return this.id!!
    }
}